package ooday04;

public class Fish1 extends Animal1{
    /*
    Fish1(String name,int age,String color){
        super(name, age, color);
    }
    void eat(){
        System.out.println(age+"岁的"+color+"色的小鱼"+name+"正在吃小虾...");
    }
    public void swim(){
        System.out.println(age+"岁的"+color+"色的小鱼"+name+"正在游泳...");
    }

     */
    Fish1(String name,int age,String color){
        super(name, age, color);
    }
    void eat(){
        System.out.println(age+"岁的"+color+"色的小鱼"+name+"正在吃小虾...");
    }
    public void swim(){
        System.out.println(age+"岁的"+color+"色的小鱼"+name+"正在游泳...");
    }
}
